package com.lovo.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.lovo.model.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> findAllByRoleName(@Param("roleName")String roleName);

    List<Role> findAllByRoleNameAndRoleDesc(@Param("roleName")String roleName,@Param("roleDesc")String roleDesc);

    List<Role> findAll();




}